package org.example.service;

import org.example.mapper.UserMapper;
import org.example.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

@Transactional
public interface UserService {
    //登录
    User login(String name, String password);
    //注册
    boolean register(String name, String password, MultipartFile image);

    //通过id查询
    User getUserInfoById(int id);

    //修改
    boolean update(User user, MultipartFile image);
    //删除
    boolean delete(int id);
}
